<?php
include "inc-config.php";
include "inc-header.php"; 

if (test_serv())
{
	$title .= "<font color='#00CC00'><img src='images/icons/PNG/comp.png' />Server Online</font>";
	$o = true;
}
else
{
	$title .= "<font color='#D90000'>Server Offline</font>";
	$o = false;
}
	
function test_serv(){
	global $ServerIP, $ServerPort;
	$connect = @fsockopen($ServerIP, $ServerPort, $ERROR_NO, $ERROR_STR,(float)0.5);
	if($connect)
	{
		@fclose($connect);
		return true;
	}
	else
	{
		return false;
	}
}
?><table width="100%" border="0" cellspacing="4" cellpadding="0" align="center">
  <tr>
    <td width="50%" valign="top">
	
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="8" height="6px" background="images/blizzMenu/blue/rb-tleft.gif"></td>
    <td background="images/blizzMenu/blue/top.gif"></td>
    <td background="images/blizzMenu/blue/rb-tright1.gif"></td>
  </tr>
  <tr>
    <td background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:left"  bgcolor="#122031"></td>
    <td  bgcolor="#122031">
      <div id="news"><?php include 'news.php'; ?></div></td>
    <td width="8"  background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:right" bgcolor="#122031"></td>
  </tr>
  <tr>
    <td height="6px" background="images/blizzMenu/blue/rb-bleft.gif"></td>
    <td  background="images/blizzMenu/blue/bot.gif"></td>
    <td background="images/blizzMenu/blue/rb-bright1.gif"></td>
  </tr>
</table>
</td>
    <td width="50%" valign="top">
	

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="8" height="6px" background="images/blizzMenu/blue/rb-tleft.gif"></td>
    <td background="images/blizzMenu/blue/top.gif"></td>
    <td background="images/blizzMenu/blue/rb-tright1.gif"></td>
  </tr>
  <tr>
    <td background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:left"  bgcolor="#122031"><img src="forum/images/btn.gif" height="192px" width="1px" /></td>
    <td  background="top/bg-1.gif" bgcolor="#122031" style="background-repeat:no-repeat; background-position:bottom center"><?php include "top/topkill.php"; ?></td>
    <td width="8"  background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:right" bgcolor="#122031"></td>
  </tr>
  <tr>
    <td height="6px" background="images/blizzMenu/blue/rb-bleft.gif"></td>
    <td  background="images/blizzMenu/blue/bot.gif"></td>
    <td background="images/blizzMenu/blue/rb-bright1.gif"></td>
  </tr>
</table>
<div class='spacer'></div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="8" height="6px" background="images/blizzMenu/blue/rb-tleft.gif"></td>
    <td background="images/blizzMenu/blue/top.gif"></td>
    <td background="images/blizzMenu/blue/rb-tright1.gif"></td>
  </tr>
  <tr>
    <td background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:left"  bgcolor="#122031"></td>
    <td  bgcolor="#122031">
<?php
print "<font face='Arial, Helvetica, sans-serif' color='#cccccc'><center><strong>Server Status - $title</strong></center></font>";
if ($o == true) {
	include "xmlparser.php";
}
?>  
	</td>
    <td width="8"  background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:right" bgcolor="#122031"></td>
  </tr>
  <tr>
    <td height="6px" background="images/blizzMenu/blue/rb-bleft.gif"></td>
    <td background="images/blizzMenu/blue/bot.gif"></td>
    <td background="images/blizzMenu/blue/rb-bright1.gif"></td>
  </tr>
</table>
<div class='spacer'></div>
    </td>
  </tr>
</table>

<div style="margin-top:10px; padding: 3px">



<div class='spacer'></div>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="color:#FFFFFF; font-family:Arial, Helvetica, sans-serif">
  <tr>
    <td width="8" height="6px" background="images/blizzMenu/blue/rb-tleft.gif" ></td>
    <td background="images/blizzMenu/blue/top.gif"></td>
    <td background="images/blizzMenu/blue/rb-tright1.gif"></td>
  </tr>
  <tr>
    <td background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:left"  bgcolor="#122031"></td>
    <td  bgcolor="#122031">
      <div id="news"><?php include "top/infobar.php"; ?></div></td>
    <td width="8"  background="images/blizzMenu/blue/rb-side.jpg" style="background-repeat:repeat-y; background-position:right" bgcolor="#122031"></td>
  </tr>
  <tr>
    <td height="6px" background="images/blizzMenu/blue/rb-bleft.gif"></td>
    <td  background="images/blizzMenu/blue/bot.gif"></td>
    <td background="images/blizzMenu/blue/rb-bright1.gif"></td>
  </tr>
</table>
</div>
<?php
include "inc-footer.php";
?>